#ifndef G_CONST_DEFINE_H
#define G_CONST_DEFINE_H

//#define WATCHDOG     1
#undef WATCHDOG

#define WINDOWS_OS   1
//#undef WINDOWS_OS

//STRING
#define STRING_ANY_IPv4         "0.0.0.0"
#define TCP_ALIVE_FALG          "ALIVE"
#define PEER_CONNECT            "PEER_CONNECT"
#define PEER_DISCONNECT         "PEER_DISCONNECT"
#define WEB_ACCEPT              "WEB_ACCEPT"
#define WEB_DISCONNECT          "WEB_DISCONNECT"

#define PROJECT_GET             "PROJECT_GET:"
#define PROJECT_SET             "PROJECT_SET:"

#define SERVER_ACCEPT           "SERVER_ACCEPT"

#define PORT_HOTEL_CHECKINOUT   5100
#define PORT_PUSH_SERVER        6000
//NETWORK - UDP TCP can use the same port number
#define PORT_LISTEN_GATEWAY     8000
#define PORT_LISTEN_WEB         8001

#define PORT_HOLE_UDP           8002
#define PORT_PEER_GATEWAY_UDP   8003

#define PORT_LOCAL_NETWORK      9000
#define GATEWAY_LOCAL_LISTEN    9001
// CMD
#define MARK_MESSAGE            0xA55A
#define CMD_HOLE_REPORT         0xA101

// LENGTH
#define SIZE_MAX_RECV           255
#define SIZE_MAX_NETWORK_PACKAGE    1400 // < 1500
//time

#define MSEC_HOLE_MAKE          40*1000
#define MSEC_WAIT_FOR_TCP       5*1000
#define MSEC_TCP_WRITE          10*1000

#define MSEC_STATE_CHECK        40*1000
#define SECS_NO_MSG_FROM_SERVER 100

#endif // G_CONST_DEFINE_H
